package com.angel.service;

import java.util.List;
import java.util.Map;

import com.angel.bean.Employee;
import com.angel.bean.VipInfo;
import com.angel.bean.dto.VipInfoDto;
import org.apache.ibatis.annotations.Param;

public interface VipInfoService{

    int insert(VipInfo vipInfo);

    int insertSelective(VipInfo vipInfo);

    int insertList(List<VipInfo> vipInfos);

    int update(VipInfo vipInfo);

    int updateVipNo(VipInfo vipInfo);

    List<VipInfo> findAll(VipInfo vipInfo);

    VipInfo findOne(VipInfo vipInfo);

    //关联
    List<VipInfoDto> findAllHaveCardName(VipInfo vipInfo);

    /**
     * 根据会员卡信息搜索会员信息
     * @param vipInfo
     * @return
     */
    List<VipInfo> searchVipInfo(VipInfo vipInfo);

    int delVipInfo(VipInfo vipInfo);

    /**
     * 用户充值
     * @param vipInfo
     * @param employee
     * @return
     */
    Map recharge(VipInfo vipInfo, Employee employee,int sumCharge,int count) throws Exception;

    VipInfoDto findOneDto(VipInfo vipInfo);
}
